package com.ruoyi.web.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 药品疾病关联（新）对象 drug_disease
 * 
 * @author drx
 * @date 2024-03-11
 */
@ApiModel("药品疾病关联（新）")
public class DrugDisease extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
@ApiModelProperty("主键")
    private Long id;

    /** 药品id */
    @Excel(name = "药品id")
@ApiModelProperty("药品id")
    private Long drugId;

    /** 疾病id */
    @Excel(name = "疾病id")
@ApiModelProperty("疾病id")
    private Long diseaseId;

    /** 父id */
    @Excel(name = "父id")
@ApiModelProperty("父id")
    private Long pid;

    /** 疾病名称 */
    @Excel(name = "疾病名称")
    @ApiModelProperty("疾病名称")
    private String name;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
@ApiModelProperty("创建人名称")
    private String createName;

    /** 更新人名称 */
    @Excel(name = "更新人名称")
@ApiModelProperty("更新人名称")
    private String updateName;

    /** 是否删除（0否；1是） */
@ApiModelProperty("是否删除（0否；1是）")
    private String delFlag;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDrugId(Long drugId) 
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }
    public void setDiseaseId(Long diseaseId) 
    {
        this.diseaseId = diseaseId;
    }

    public Long getDiseaseId() 
    {
        return diseaseId;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setUpdateName(String updateName) 
    {
        this.updateName = updateName;
    }

    public String getUpdateName() 
    {
        return updateName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("drugId", getDrugId())
            .append("diseaseId", getDiseaseId())
            .append("pid", getPid())
            .append("createBy", getCreateBy())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateName", getUpdateName())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
